package com.me.study.javaCore.event.java;

/**
 * java 事件发布：定义一个门对象
 *
 * @author ME
 * @date   2020/5/10
 */
public class Door {

    private String status;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void open() {
        this.status = "open";
        System.out.println("事件：门开啦~~");
    }
}
